import ReactDOM from 'react-dom/client';
import App from './App';
// antd相关
import { ConfigProvider} from 'antd';
import zhCN from 'antd/es/locale/zh_CN'; 
import 'antd/dist/antd.min.css';
//echarts
import * as echarts from 'echarts/core';
import {china} from "./utils/map/china";
import { MapChart } from 'echarts/charts';
//base
import './assets/css/base.css';

//注册中国地图
echarts.use([MapChart]);
echarts.registerMap("china", china, {});


// 注册reactApp
let root=ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
root.render(
  <ConfigProvider locale={zhCN}>
    <App/>
  </ConfigProvider>
);